import request from '@/utils/request'

const base = process.env.VUE_APP_BASE_API5 + '/validate'
export function baseRequest(val) {
  return request({
    url: base + val.url,
    method: val.method,
    data: val.data
  })
}

// 校验
export function validate(val) {
  return baseRequest({
    url: '/validate',
    method: 'post',
    data: val
  })
}
